#include "arithmetic.h"

class Rectangle
{
public:
   Point lb, rt;
};

bool in_rectangle(Point & p, Rectangle & r)
{
   if ((p.x < r.lb.x) || (p.x > r.rt.x) || (p.y > r.rt.y) || (p.y < r.lb.y))
      return false;
   return true;
}